/**
 * Created by 白雨浓 on 2019/7/14 14:42.
 */

const tableTemplate = '{{#fields}}\n' +
  '<el-table-column prop="{{field}}" label="{{comment}}" align="center"></el-table-column>\n' +
  '{{/fields}}';
const inputTemplate = '{{#fields}}\n' +
  '<el-form-item label="{{comment}}：" prop="{{field}}">\n' +
  '    <el-input class="input" v-model.trim="{REPLACE}.{{field}}"></el-input>\n' +
  '</el-form-item>\n' +
  '{{/fields}}';
const ruleTemplate = 'return {\n' +
  '    {{#fields}}\n' +
  '    {{field}}: [\n' +
  '        {required: true, message: \'请输入{{comment}}\', trigger: \'blur\'},\n' +
  '    ],\n' +
  '    {{/fields}}\n' +
  '}';

export { tableTemplate, inputTemplate, ruleTemplate }
